/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rgenerator;

/**
 *
 * @author alex2stf <alex2stf@yahoo.com>
 */
public class Stringers {
    
//    private String instantaDePachet="package";
//    private String postNumePachet="{";
//    private String inceputDeClasa="public class ";
//    private String postNumeClasa="{";
//    private String finalDeClasa="}";
//    private String instantaDeFinalPachet="}";
    
    
    public String inputFolder="D:/Lucru_Alex/CLASA 0/v.0.01.01/bin";
    public String outPutFolder="";
    public String packageName="alex";
    public boolean doubleSlashed=true;
    public boolean slashInFront=true;
    public boolean backSlashed=true;
    
    /**
     * 
     */
    public String mainClassName="R";
    
    private boolean enableExtensionMode=false;
    private boolean getterMode=true;

    public boolean isGetterMode() {
        return getterMode;
    }

    public void setGetterMode(boolean getterMode) {
        this.getterMode = getterMode;
    }

    public void setEnableExtensionMode(boolean enableExtensionMode) {
        this.enableExtensionMode = enableExtensionMode;
    }

    public boolean isEnableExtensionMode() {
        return enableExtensionMode;
    }

   

    
    public Stringers(){
    
    }
    
    
    public static String convertPathToClassName(String param){
        String temp[]=param.split("/");
        param="";
        for (int i = 0; i < temp.length; i++) {
            temp[i]=temp[i].substring(0,1).toUpperCase()+temp[i].substring(1).toLowerCase();
            param+=temp[i];
        }
        
        return param;
    }
    
    
    
    public static String makeSafe(String param){
        
        int nr;
        try{
        nr=Integer.parseInt(Character.toString(param.charAt(0)));
        param="r"+param;
        }
        
        catch(Exception ex){
        
        }
        
        param=param.replaceAll("-", "_");
        param=param.replaceFirst("[.]", "_");
        
        return param;
    }
    
    
    
    
}
